package com.rc.saas.tenant.service.msg;

import com.github.pagehelper.PageInfo;
import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.mapper.msg.TenantCustomMsgMapper;
import com.rc.saas.tenant.model.msg.TenantCustomMsg;
import com.rc.saas.tenant.model.msg.TenantCustomMsgExample;
import com.rc.saas.tenant.model.tenant.TenantUser;
import com.rc.saas.tenant.search.tenant.TenantCustomMsgSearch;
import com.rc.saas.tenant.vo.msg.TenantCustomMsgResultVo;

/**
 * @author frog
 * @date 2019/12/17
 */
public interface TenantCustomMsgService extends BaseService<Long, TenantCustomMsg, TenantCustomMsgExample, TenantCustomMsgMapper> {
    PageInfo<TenantCustomMsgResultVo> searchByCondition(TenantCustomMsgSearch tenantCustomMsgSearch);

    void insertMessage(Long memberId, String content, TenantUser user);

    long countUnreadMsg(String tenantCode);
}
